export default {
	data(){
		return {
			scanVal:'',
		}
	},
	methods: {
		getScanVal(){
			let that = this
			uni.scanCode({
				scanType: ['barCode'],
				success: function (res) {
					that.$reqGet('GetSysGoodByCode',{
						code: res.result
					}).then(res=>{
						that.form.FName = res.Data.FName
						that.form.FCode = res.Data.FCode
					}).catch(()=>{
						that.form.FCode = res.result
					})
				}
			})
		}
	}
}